package com.googlecode.jbeansdb;

import java.io.IOException;
import java.nio.channels.SocketChannel;

/**
 * This interface defines the behaviour of the entities which process the incoming request.
 * 
 * @author xumingming64398966
 *
 */
public interface RequestProcessor extends Runnable {
	/**
	 * process this request.
	 * 
	 * @param channel
	 * @throws IOException
	 */
	public void process(Beansdb beansdb, SocketChannel socket, byte[] data, int count) throws IOException, InterruptedException;
}
